{template 'common/header'}
<div class="main">
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('list');}">相册列表</a></li>
	<li><a href="./index.php?c=platform&a=reply&do=post&m=tim_album">添加相册</a></li>
</ul>	
	<div style="padding:15px;">
		<form action="" method="post">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th align="center" style="width:20px;text-align:center;">ID</th>						
                    <th align="center" style="width:80px;text-align:center;">相册名称</th>
					<th align="center" style="width:50px;text-align:center;">相册封面</th>
					<th align="center" style="width:40px;text-align:center;">创建时间</th>
					<th style="width:100px;text-align:center;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
					<tr>		
						<td align="center" style="text-align:center;">{$row['album_id']}</td>
                        <td align="center" style="text-align:center;">{$row['album_name']}</td>
                        <td align="center" style="text-align:center;"><img style="width:60px" src="{$_W['attachurl']}{$row['cover']}"</td>
						<td align="center" style="text-align:center;">{php echo date('Y-m-d',$row['create_time']);}</td>
						
						<td style="text-align:center;">
							<a href="{php echo $this->createWebUrl('logs',array('album_id'=>$row['album_id']))}"><button type="button" class="btn btn-default btn-sm"><i class="fa fa-edit"></i> 照片</button></a>
							<a href="{php echo $this->createWebUrl('user',array('album_id'=>$row['album_id']))}"><button type="button" class="btn btn-default btn-sm"><i class="fa fa-edit"></i> 用户</button></a>
                        	<a href="./index.php?c=platform&a=reply&do=post&m=tim_album&rid={$row['rid']}&album_id={$row['album_id']}" title="编辑"><button type="button" class="btn btn-default btn-sm"><i class="fa fa-edit"></i></button></a>
                        </td>
					</tr>
				{/loop}
			</tbody>
		</table>
	</form>
		{$pager}
	</div>
</div>
{template 'common/footer'}